
package jz;

import java.util.Calendar;
import java.util.Date;

public class RzConstants {

	private static RzConstants	instance	= null;

	private long				nullDateTs;

	public static RzConstants getInstance() {
		if (instance == null) {
			instance = new RzConstants();
			instance.loadProperties();
		}
		return instance;
	}

	public void loadProperties() {
		{
			Calendar d = Calendar.getInstance();
			d.set(2005, 0, 1, 0, 0, 0);
			nullDateTs = d.getTime().getTime();
		}
	}

	public long getNullDateTs() {
		return nullDateTs;
	}
	
	public boolean isNullDateTs(Date date) {
		if (date == null) {
			return true;
		}
		if (date.getTime() < nullDateTs) {
			return true;
		}
		return false;
	}

}
